
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>服务评价</title>
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/reset.css">
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/pinjia_scss.css">
	<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/flexible.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/jquery-1.11.1.min.js"></script>
	<style>
		*{
			margin:0;
			padding:0;
			list-style-type:none;
		}
		a,img{
			border:0;
		}
		img{
			vertical-align:middle;
		}
		#QuacorGrading input{
			background:url(<?php echo IMG_PATH ?>bdkd/img/grading.png) no-repeat scroll right center;
			cursor:pointer;
			height:30px;
			width:30px;
			padding:0;
			border:0;
		}
	</style>
</head>
<body>
<input type="hidden" id="worker_id" value="<?php echo $worker_id;?>">
<input type="hidden" id="user_id" value="<?php echo $user_id;?>">
	<div class="container">
		<div class="waikuang">
			<div class="touxiang">
				<img src="<?php echo $pathT;?>" alt="">
				
			</div>
            <p>快递员 : <span><?php
            echo $name;
                    ?></span></p>

			<div class="xuxian">
				<img src="<?php echo IMG_PATH ?>bdkd/img/矩形-2@2x.png" alt="">
			</div>
			<div class="wenbenyu">
				<textarea id="content" placeholder="请输入对工作人员的评价"></textarea>
			</div>
			<div class="btn2" onclick="add()">提交</div>
		</div>
	</div>
	<script src="<?php echo IMG_PATH ?>bdkd/js/pinjia.js"></script>
<script>
    function add() {
        var worker_id=$("#worker_id").val();
        var user_id=$("#user_id").val();
        var content=$("#content").val();
        console.log(worker_id);
        console.log(user_id);
        console.log(content);//return false;
        $.ajax({
            url:"<?php echo SITE_PATH ?>work/borders/addEvaluate",
            type:"post",
            data:{
                'worker_id': worker_id,
                'user_id': user_id,
                'content': content
            },
            success: function(data){
                console.log(data);
                if(data.result==1){
                    alert('评价成功!');
                }else {
                    alert(data.msg);
                }
            },
            error: function(){
                alert('评价失败0!');
            }
//                async:"false";
        })

        
    }
</script>
</body>
</html>